<?php

/**
 * Generated Model class.
 */
class Base_CommentRow extends Db_Row
{

    /**
     * Set new value for comment.id column in current Row.
     * 
     * @param int $IdFromCommentRow
     * @return void
     */
    public function setId($Id)
    {
        $this->__set("id", $Id);
    }

    /**
     * Return comment.id column value in current Row.
     * 
     * @return int
     */
    public function getId()
    {
        return $this->__get("id");
    }

    /**
     * Set new value for comment.profile_id column in current Row.
     * 
     * @param int $ProfileIdFromCommentRow
     * @return void
     */
    public function setProfileId($ProfileId)
    {
        $this->__set("profile_id", $ProfileId);
    }

    /**
     * Return comment.profile_id column value in current Row.
     * 
     * @return int
     */
    public function getProfileId()
    {
        return $this->__get("profile_id");
    }

    /**
     * Return parent row from table profile where comment.profile_id = profile.id
     * 
     * @param Db_Select $selectFromProfile
     * @return ProfileRow
     */
    public function getProfileRowByProfileId($select = null)
    {
        return $this->findParentRow('ProfilePeer', null, $select);
    }

    /**
     * Set new value for comment.text column in current Row.
     * 
     * @param text $TextFromCommentRow
     * @return void
     */
    public function setText($Text)
    {
        $this->__set("text", $Text);
    }

    /**
     * Return comment.text column value in current Row.
     * 
     * @return text
     */
    public function getText()
    {
        return $this->__get("text");
    }

    /**
     * Set new value for comment.is_approved column in current Row.
     * 
     * @param tinyint $IsApprovedFromCommentRow
     * @return void
     */
    public function setIsApproved($IsApproved)
    {
        $this->__set("is_approved", $IsApproved);
    }

    /**
     * Return comment.is_approved column value in current Row.
     * 
     * @return tinyint
     */
    public function getIsApproved()
    {
        return $this->__get("is_approved");
    }

    /**
     * Set new value for comment.date column in current Row.
     * 
     * @param datetime $DateFromCommentRow
     * @return void
     */
    public function setDate($Date)
    {
        $this->__set("date", $Date);
    }

    /**
     * Return comment.date column value in current Row.
     * 
     * @return datetime
     */
    public function getDate()
    {
        return $this->__get("date");
    }

    /**
     * Set new value for comment.substance_type_id column in current Row.
     * 
     * @param int $SubstanceTypeIdFromCommentRow
     * @return void
     */
    public function setSubstanceTypeId($SubstanceTypeId)
    {
        $this->__set("substance_type_id", $SubstanceTypeId);
    }

    /**
     * Return comment.substance_type_id column value in current Row.
     * 
     * @return int
     */
    public function getSubstanceTypeId()
    {
        return $this->__get("substance_type_id");
    }

    /**
     * Return parent row from table comment_substance_type where
     * comment.substance_type_id = comment_substance_type.id
     * 
     * @param Db_Select $selectFromCommentSubstanceType
     * @return CommentSubstanceTypeRow
     */
    public function getCommentSubstanceTypeRowBySubstanceTypeId($select = null)
    {
        return $this->findParentRow('CommentSubstanceTypePeer', null, $select);
    }

    /**
     * Set new value for comment.substance_id column in current Row.
     * 
     * @param int $SubstanceIdFromCommentRow
     * @return void
     */
    public function setSubstanceId($SubstanceId)
    {
        $this->__set("substance_id", $SubstanceId);
    }

    /**
     * Return comment.substance_id column value in current Row.
     * 
     * @return int
     */
    public function getSubstanceId()
    {
        return $this->__get("substance_id");
    }


}

